home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.teleport.com!usenet
- From: Jeff Grossman <grossman@teleport.com>
- Newsgroups: comp.lang.c++
- Subject: STL deque compile warning
- Date: 10 Jan 1996 04:23:51 GMT
- Organization: Teleport - Portland's Public Access (503) 220-1016
- Message-ID: <4cvf0n$jq@maureen.teleport.com>
- NNTP-Posting-Host: ip-pdx21-56.teleport.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.2N (Windows; I; 16bit)
-
- Using MSVC4 (and the STL on MS's CD-ROM), this simple program,
-
- #include <deque.h>
-
- class foo
- {
- int n1;
- int n2;
- };
-
- int main ()
- {
- deque< foo > dFoo;
-
- return 0;
- }
-
-
- generates the following warnings:
-
- deque.h(106) : warning C4146: unary minus operator applied to
- unsigned type, result still unsigned
- deque.h(187) : warning C4146: unary minus operator applied to
- unsigned type, result still unsigned
- deque.h(455) : warning C4018: '>' : signed/unsigned mismatch
- deque.h(469) : warning C4018: '>' : signed/unsigned mismatch
-
-
- Does anyone know STL well enough to understand the significance of these
- warnings?
-
- I've looked at the offending code, but I'm very new to STL, and I can't
- tell if these warnings are indicative of a true problem or not.
-
-
- TIA,
- Jeff
-
-
-